package com.jiantong.lawEnforcing.service;

import com.jiantong.lawEnforcing.model.AskAnswer;
import io.terminus.common.model.Response;

import java.util.List;

/**
 * 问答记录表
 * Created by mz03 on 2017/8/14.
 */
public interface AskAnswerService {

    /**
     * id 查找
     * @param id
     * @return News
     */
    Response<AskAnswer> finById(Long id);


    /**
     * ids 查找
     * @param ids
     * @return News
     */
    Response<List<AskAnswer>> finByIds(List<Long> ids);


    /**
     * 创建新闻新单据
     * @param askAnswer 单据对象
     * @return 主键 id
     */
    Response<Long> create(AskAnswer askAnswer);


    /**
     * 创建问答列表,并且写入到idList字段中 更新datas
     * @param askAnswer
     * @param lawCase
     * @param writType
     * @param idList
     * @return
     */
    Response<Long> createAndList(AskAnswer askAnswer, Long lawCase, Integer writType, String idList);



    /**
     * 更新新闻的单据
     * @param askAnswer 单据对象
     * @return true or false
     */
    Response<Boolean> update(AskAnswer askAnswer);


}
